battleShips = ['敦刻尔克号','反击号','金刚号','扶桑号','长门号']
print("前三个元素是:")
print(battleShips[0:3])
print("\n中间三个元素是:")
print(battleShips[1:4])
print("\n后三个元素是:")
print(battleShips[-3:])